let menus = [
    {
        name:'菜单一',
        children:[
            {
                name:'子菜单一'
            },
            {
                name:'子菜单二'
            }
        ]
    }
]

function renderMenu(menus){
    menus.forEach(menu=>{
        console.log(menu.name);
        if(menu.children)
        renderMenu(menu.children)
    });
}
renderMenu(menus);

console.log(hello)